Skip to main content

Files Short Code

The files widget can also be used as a short-code item. This short code can then be placed in any content area to pull in a set of files.

Short Code

Shortcode options are as follows:

OptionValueDescription
display typeText
  • list
  • button-row
  • table-policy
  • table-name
  • Display headingTextWhen used, this text will display as a heading above the file list
    Container ClassTextA class to be added to the file container
    Button ClassTextA class to be added to any buttons
    Link PositionTextRight / Left
    Header ContentTextThe contents of any header
    Is borderTrue / FalseShould the file list contain a border
    Anchor NameTextText value for an anchor to the file elements
    Order By policy numberTrue / FalseShould the order of the files be by the policy
    CatnumberThe category number of the files to be pulled in setting this to all will pull all files

    Example short code

    The short-code below will pull in all files and display them in a list format.

    [sc-fileList cat="68" displayType="table-name"]

    file category

    The file category is the ID of the category, this can be found by navigating to the file categories section and hovering over the category name. The ID will be displayed in the URL.

    This will pull in all files from category 68 and display them in a table format sorted by name.

    All options

    • displaytype
    • displayheading
    • containerclass
    • btnclass
    • linkposition
    • headercontent
    • isborder
    • anchorname
    • orderbypolicy
    • cat